package vip.xiaonuo.biz.modular.banner.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Banner编辑参数
 *
 * @author SNOWY_TEAM
 **/
@Getter
@Setter
public class BizBannerEditParam {

    /** ID */
    @ApiModelProperty(value = "ID", required = true, position = 1)
    @NotBlank(message = "ID不能为空")
    private String id;

    /** banner名称 */
    @ApiModelProperty(value = "banner名称", required = true, position = 2)
    @NotBlank(message = "banner名称不能为空")
    private String name;

    /** 图片地址 */
    @ApiModelProperty(value = "图片地址", required = true, position = 3)
    @NotBlank(message = "图片地址不能为空")
    private String url;

    /** 关联景区id */
    @ApiModelProperty(value = "关联景区id", position = 4)
    private String spotId;

    /** 是否启用：0否 1是 */
    @ApiModelProperty(value = "是否启用：0否 1是", required = true, position = 5)
    @NotNull(message = "是否启用不能为空")
    private Integer status;

    /** 排序字段 */
    @ApiModelProperty(value = "排序字段", position = 6)
    private String sort;
} 